<template>
  <!--用户个人信息 -->
  <div id="app">
    <div  class="user-container">
      <div class="user-login van-row">
        <div class="van-col van-col--6">
          <div class="van-image">
              <img :src="user.avatar" class="van-image__img"/>
          </div>
        </div>
        <div class="tips van-col van-col--10">Tom</div>
        <div class="more van-col van-col--8">
          >
        </div>
      </div>
      <div class="">
        <div class="">
          <van-grid :column-num="3">
        <van-grid-item
          v-for="item in list"
          :key="item.id"
          :icon="item.icon_url"
          :text="item.name"
        
        />
      </van-grid>
        </div>

    </div>
  </div>

</div>
  <!-- 其他功能 -->
</template>

<script>

export default {

  data() {
    return {
      user: {id:1,name:"才徐奎",avatar:"http://youker.net:8080/img/avatar.901489fb.png"},
      list: [{name:"我的订单",icon_url:require("@/assets/dingdan.png")},
      {name:"优惠券",icon_url:require("@/assets/youhuijuan.png")},
      {name:"礼品卡",icon_url:require("@/assets/lipingka.png")},  
      {name:"我的收藏",icon_url:require("@/assets/wodeshoucang.png")},
      {name:"我的足迹",icon_url:require("@/assets/我的足迹.png")},
      {name:"会员福利",icon_url:require("@/assets/会员福利.png")},
      {name:"地址管理",icon_url:require("@/assets/地址管理.png")},
      {name:"账号安全",icon_url:require("@/assets/账号安全.png")},
      {name:"联系客服",icon_url:require("@/assets/联系客服.png")},
      {name:"帮助中心",icon_url:require("@/assets/帮助中心.png")},
      {name:"意见反馈",icon_url:require("@/assets/意见反馈.png")}
    ]
    };
  }
};
</script>

<style>
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, main, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
.user-container{
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
.user-login{
  padding: 0.66667rem 0.53333rem;
  background-color: #b75d12;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
}
.van-col--6 {
  width: 25%;
}
.van-col {
  float: left;
  box-sizing: border-box;
  min-height: 0.02667rem;
  color: wheat;
}
.user-login .van-image {
  width: 3rem;
  height: 3rem;
  margin: 0 auto;
  border-radius: 50%;
  background-color: #f1f1f1;
  overflow: hidden;
}
.van-image {
  position: relative;
  display: inline-block;
}
.van-image__error, .van-image__img, .van-image__loading {
  display: block;
  width: 100%;
  height: 100%;
}
.user-login .tips[data-v-768dc365] {
  font-size: 0.58667rem;
  color: #fff;
}
.van-col--10 {
  width: 41.66666667%;
}
.van-col {
  float: left;
  box-sizing: border-box;
  min-height: 0.02667rem;
}
.user-login .more[data-v-768dc365] {
  text-align: right;
  color: #fff;
}
.van-col--8 {
  width: 33.33333333%;
}
.van-icon {
  position: relative;
  display: inline-block;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}
.van-grid {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
}
.van-grid-item--square {
  height: 0;
}
.van-grid-item {
  position: relative;
  box-sizing: border-box;
}
.van-grid-item--square {
  height: 0;
}
.van-grid-item {
  position: relative;
  box-sizing: border-box;
}
</style>